﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BonoPiyasasi.aspx.cs" Inherits="Fabrikatorum.Fabrikator.Sayfa.BonoPiyasasi" %>

    <form id="form1" runat="server">
<div class="row">
    <div id="breadcrumb" class="col-md-12">
        <ol class="breadcrumb">
            <li><a href="Default.aspx#Sayfa/Anasayfa.aspx" class="ajax-link"><i class="fa fa-home"></i> <span class="hidden-xs"> Ana Sayfa</span></a></li>
            <li><a href="Default.aspx#Sayfa/BonoPiyasasi.aspx" class="ajax-link"><i class="fa fa-th"></i> <span class="hidden-xs"> Bono Piyasası</span></a></li>
        </ol>
       
    </div>
</div>
<div class="row">
	<div class="col-md-12 col-lg-12 col-sm-12 col-xs-12">
		<div class="box">
			<div class="box-header">
				<div class="box-name">
					<i class="fa fa-th"></i>
					<span>Bonolar</span>
				</div>
				<div class="box-icons pull-right">
					<a class="collapse-link">
						<i class="fa fa-chevron-up"></i>
					</a>
					<a class="expand-link">
						<i class="fa fa-expand"></i>
					</a>
					<a class="close-link">
						<i class="fa fa-times"></i>
					</a>
				</div>
				<div class="no-move"></div>
			</div>
			<div class="box-content">
                        <div class="table-responsive">
  <table class="table table-hover table-bordered">
      <asp:ListView ID="lstBonolar" runat="server">
          <LayoutTemplate>
              <tr>
                  <th style="text-align:center;">Talimat<br />No</th>
                  <th style="text-align:center;">Nominal<br />Değeri</th>
                  <th style="text-align:center;">Vade<br />(Saat)</th>
                  <th style="text-align:center;">Faiz</th>
                  <th style="text-align:center;">Piyasa<br />Değeri</th>
                  <th style="text-align:center;">Getirisi</th>
                  <th style="text-align:center;">İşlem</th>
              </tr>
                  <asp:PlaceHolder ID="ItemPlaceHolder" runat="server"></asp:PlaceHolder>
          </LayoutTemplate>
          <ItemTemplate>
              <tr>
                  <td><%#Eval("BonoTalimatNo")%></td>
                  <td style="text-align:right;"><%#string.Format("{0:n}", Eval("Nominal"))%>TL</td>
                  <td><%#Eval("Vade")%></td>
                  <td>%o<%#Eval("Faiz")%></td>
                  <td style="text-align:right;"><%#string.Format("{0:n}", Eval("Piyasa"))%>TL</td>
                  <td style="text-align:right;"><%#string.Format("{0:n}", Eval("Maliyet"))%>TL</td>
                  <td><div id="bono<%#Eval("BonoTalimatNo")%>"><a href="#" onclick="bonokodal('<%#Eval("BonoTalimatNo")%>','<%#BonoSifrele().Trim() %>')">Satın Al!</a></div></td>
<%--                  <td><div id="bono<%#Eval("BonoTalimatNo")%>"><a href="#" onclick="bonoal(<%=uyeno %>,<%#Eval("BonoTalimatNo")%>)">Satın Al!</a></div></td>--%>
              </tr>
          </ItemTemplate>
          <EmptyDataTemplate>
              <tr><td>BONO BULUNMAMAKTADIR!</td></tr>
          </EmptyDataTemplate>
          <EmptyItemTemplate>
              <tr><td>BONO BULUNMAMAKTADIR!</td></tr>
          </EmptyItemTemplate>
      </asp:ListView>
        </table>
</div>
			</div></div></div>
</div>
    </form>